<?php
declare(strict_types=1);

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class YikaoCollegeC extends Model
{
    protected $table = 'yikao_college_c';
    protected $primaryKey = 'id';
    public $timestamps = false;

    protected $fillable = [
        'yikao_college_id',
        'qs_rank',
        'qs_world',
        'rank',
        'recommend_master_level',
        'recommend_master_rate',
        'remark',
        'ruanke_rank',
        'school_batch',
        'school_email',
        'school_id',
        'school_nature',
        'school_nature_name',
        'school_phone',
        'school_site',
        'school_special_num',
        'school_type',
        'school_type_name',
        'senior_show',
        'senior_status',
        'short',
        'single',
        'single_province',
        'single_year',
        'site',
        'special',
        'status',
        'subject_arr',
        'town_name',
        'type',
        'type_name',
        'upgrading_rate',
        'urllinks',
        'us_rank',
        'video',
        'video_pc',
        'view_total_show',
        'vocational',
        'weiwangzhan',
        'wsl_rank',
        'xiaoyuan',
        'xueke_rank',
        'xyh_rank',
        'xyq_id',
        'yjszs',
        'yk_feature',
        'yk_type',
        'zs_code'
    ];

    protected $casts = [
        'rank' => 'array',
        'single_year' => 'array',
        'special' => 'array',
        'subject_arr' => 'array',
        'urllinks' => 'array',
        'video' => 'array',
        'video_pc' => 'array',
        'yk_feature' => 'array',
        'yk_type' => 'array',
        'remark' => 'array',
        'single_province' => 'array',
        'xueke_rank' => 'array'
    ];

    public function yikao_college_c()
    {
        return $this->belongsTo(YikaoCollegeC::class, 'yikao_college_id', 'id');
    }
}
